package com.onluy.framework.base;

import java.util.List;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory; 
import com.onluy.framework.data.util.InParam; 

public  abstract  class AppService   {

	protected Logger log;  
	
	public AppService() {
	  log = LoggerFactory.getLogger(getClass());  
	} 
 
	public abstract AppMapper getAppMapper();
	
	
	public   InParam<String, Object> model(InParam<String, Object> inParam) { 
		return getAppMapper().selectByPrimaryKey(  inParam);
	};
	public  int add(InParam<String, Object> inParam){
		
		return getAppMapper().insertSelective( inParam);
	};
	public  int update(InParam<String, Object> inParam){ 
		return getAppMapper().updateByPrimaryKeySelective(inParam);
	};
	public  int del(InParam<String, Object> inParam){ 
		return getAppMapper().deleteByPrimaryKey(inParam);
	};
	public  List<InParam<String, Object>> listByPage(InParam<String, Object> inParam){ 
		return getAppMapper().listByPage(inParam);
	};

	public  List<InParam<String, Object>> simplelist(InParam<String, Object> inParam){ 
		return getAppMapper().simplelist(inParam);
	}; 
	
 
}
